package com.ruoyi.customerSample.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 来样登记信息对象 sample_send_info
 * 
 * @author ruoyi
 * @date 2023-07-05
 */
@ApiModel("来样登记信息对象")
public class SampleSendInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 送检单位 */
    @Excel(name = "送检单位")
    @ApiModelProperty(value = "送检单位")
    private String client;

    /** 收样日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收样日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "收样日期")
    private Date reDate;

    /** 项目编号 */
    @Excel(name = "项目编号")
    @ApiModelProperty(value = "项目编号")
    private String itemNum;

    /** 送检单位地址 */
    @Excel(name = "送检单位地址")
    @ApiModelProperty(value = "送检单位地址")
    private String clientAdress;

    /** 收样人 */
    @Excel(name = "收样人")
    @ApiModelProperty(value = "收样人")
    private String sampleReceiver;

    /** 送样人 */
    @Excel(name = "送样人")
    @ApiModelProperty(value = "送样人")
    private String sampleSender;

    /** 联系电话 */
    @Excel(name = "联系电话")
    @ApiModelProperty(value = "联系电话")
    private String phonenum;

    /** 送检仪器信息 */
    @Excel(name = "送检仪器信息")
    @ApiModelProperty(value = "送检仪器信息")
    private String sampleInfo;

    /** 备注信息 */
    @Excel(name = "备注信息")
    @ApiModelProperty(value = "备注信息")
    private String remarks;

    /** 来样设备 */
    @ApiModelProperty(value = "来样设备")
    private List<SampleSendInstrument> children;

    /** 来样明细信息 */
    @ApiModelProperty(value = "来样明细信息")
    private List<SampleSendDetails> list;

    public List<SampleSendInstrument> getChildren() {
        return children;
    }

    public void setChildren(List<SampleSendInstrument> children) {
        this.children = children;
    }

    public List<SampleSendDetails> getList() {
        return list;
    }

    public void setList(List<SampleSendDetails> list) {
        this.list = list;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setClient(String client) 
    {
        this.client = client;
    }

    public String getClient() 
    {
        return client;
    }
    public void setReDate(Date reDate) 
    {
        this.reDate = reDate;
    }

    public Date getReDate() 
    {
        return reDate;
    }
    public void setItemNum(String itemNum) 
    {
        this.itemNum = itemNum;
    }

    public String getItemNum() 
    {
        return itemNum;
    }
    public void setClientAdress(String clientAdress) 
    {
        this.clientAdress = clientAdress;
    }

    public String getClientAdress() 
    {
        return clientAdress;
    }
    public void setSampleReceiver(String sampleReceiver) 
    {
        this.sampleReceiver = sampleReceiver;
    }

    public String getSampleReceiver() 
    {
        return sampleReceiver;
    }
    public void setSampleSender(String sampleSender) 
    {
        this.sampleSender = sampleSender;
    }

    public String getSampleSender() 
    {
        return sampleSender;
    }
    public void setPhonenum(String phonenum) 
    {
        this.phonenum = phonenum;
    }

    public String getPhonenum() 
    {
        return phonenum;
    }
    public void setSampleInfo(String sampleInfo) 
    {
        this.sampleInfo = sampleInfo;
    }

    public String getSampleInfo() 
    {
        return sampleInfo;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("client", getClient())
            .append("reDate", getReDate())
            .append("itemNum", getItemNum())
            .append("clientAdress", getClientAdress())
            .append("sampleReceiver", getSampleReceiver())
            .append("sampleSender", getSampleSender())
            .append("phonenum", getPhonenum())
            .append("sampleInfo", getSampleInfo())
            .append("remarks", getRemarks())
            .toString();
    }
}
